package com.nicmic.blog.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nicmic.blog.dao.UserDao;
import com.nicmic.blog.pojo.User;
import com.nicmic.blog.service.UserService;

/**
 * �û�����ʵ����
 * @author nicmic
 * @date 2016-08-24 11:17:29
 */
@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDao dao;
	
	@Override
	public int add(User user) {
		// TODO Auto-generated method stub
		return dao.add(user);
	}

	@Override
	public int delete(String username) {
		// TODO Auto-generated method stub
		return dao.delete(username);
	}

	@Override
	public int update(User user) {
		// TODO Auto-generated method stub
		return dao.update(user);
	}

	@Override
	public List<User> get(String username) {
		// TODO Auto-generated method stub
		return dao.get(username);
	}

}
